<script>
	import Vue from 'vue';
	import {  mapActions } from 'vuex';
	export default {
		methods:{
			...mapActions(['storeGetuserInfo']),
			// 获取本地用户信息
			getSysUserInfo () {
				this.storeGetuserInfo();
			}
		},
		onLaunch: function() {
			// console.log(this);
			// 获取本地用户信息
			this.getSysUserInfo();
			
			
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif        
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
				}
			})
		},
		onShow: function() {
			
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	/* uView css */
	@import "uview-ui/index.scss";
	.logo {
		margin-left: 30rpx;
		width: 60rpx;
		border-radius: 8rpx;
	}
</style>
